<?php
use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;
/* @var $this \yii\web\View */
/* @var $content string */

//dmstr\web\AdminLteAsset::register($this);
?>



<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <?= Html::csrfMetaTags() ?>

    <title><?= Html::encode($this->title) ?> - <?= Yii::$app->name ?></title>
    <!--<script src=""></script>-->
    <script src="/themes/basic/js/jquery.min.js"></script>
    <!-- Bootstrap Core CSS -->
    <link href="/themes/basic/css/bootstrap.min.css" rel="stylesheet">
    <!-- MetisMenu CSS -->
    <link href="/themes/basic/css/metisMenu.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="/themes/basic/css/sb-admin-2.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="/themes/basic/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <link href="/themes/basic/css/common.css" rel="stylesheet">
</head>
<body>
<div id="wrapper"><!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <title>登录-191短信管理系统</title>
        <!-- Bootstrap Core CSS -->
        <link href="/themes/basic/css/bootstrap.min.css" rel="stylesheet">
        <!-- MetisMenu CSS -->
        <link href="/themes/basic/css/metisMenu.min.css" rel="stylesheet">
        <!-- Custom CSS -->
        <link href="/themes/basic/css/sb-admin-2.css" rel="stylesheet">
        <!-- Custom Fonts -->
        <link href="/themes/basic/css/font-awesome.min.css" rel="stylesheet" type="text/css">
        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
    <?= $content ?>

    <!-- jQuery -->
    <script src="/themes/basic/js/jquery.min.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="/themes/basic/js/bootstrap.min.js"></script>
    <!-- Metis Menu Plugin JavaScript -->
    <script src="/themes/basic/js/metisMenu.min.js"></script>
    <!-- Custom Theme JavaScript -->
    <script src="/themes/basic/js/sb-admin-2.js"></script>
    </body>
    </html>
    <script>
        function submits(){
            $.post(location.href,$('#login').serialize(),function(v){
                console.info(typeof v);
                if(v.f){
                    location.href='<?= Url::to(['site/index'])?>';
                }else{
                    alert(v.data);
                }
            },'json');
        }
        document.onkeydown=function(event){
            var e = event || window.event || arguments.callee.caller.arguments[0];
            if(e && e.keyCode==13){ // enter 键
                submits();
            }
        };
    </script>

</div>
<!-- jQuery -->

<!-- Bootstrap Core JavaScript -->
<script src="/themes/basic/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="/themes/basic/js/metisMenu.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="/themes/basic/js/sb-admin-2.js"></script>
<script>
    $('.tooltips').tooltip({
        selector: "[data-toggle=tooltip]",
        container: "body"
    });
    $("[data-toggle=popover]").popover();
</script>
</body>
</html>
